package com.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.business.management.MainController;

public class ErrorLog {
	
	public static final Logger logger = LoggerFactory.getLogger(MainController.class);
	
	public static void OnWrite(Exception e)
	{
		String message=e.getMessage()+"\r\n**************************************************\r\n";
		
		logger.error(message);
	}
	
	public static void OnWrite(String printMessage)
	{
		String message=printMessage+"\r\n**************************************************\r\n";
		
		logger.error(message);
	}
}
